package com.example.kingdee.sqlTool.sqltoolEnum;

public enum RuleEnum {
    //采购订单下推至收料通知单规则编码
    purPurchaseOrderPurReceiveBill("PUR-PurchaseOrder-PUR_ReceiveBill"),
    //销售订单下推至发货通知单规则编码
    saleOrderToDeliveryNotice("SaleOrder-DeliveryNotice");


    /**
     * 表默认字段设置
     */

    public final String value;
    RuleEnum(String value) {
        this.value = value;
    }

    public static String getRuleName(String ruleId){
        for(RuleEnum tn: RuleEnum.values()){
            if(tn.toString().equals(ruleId)){
                return tn.value.split(",")[1];
            }
        }
        return ruleId;
    }
}
